﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderOffer
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderOffer;

    public class Map_TenderOfferCfgDetail : EntityMapping<TenderOfferCfgDetail>
    {
        public Map_TenderOfferCfgDetail()
        {
            ManyToOne(x => x.Cfg, map =>
            {
                map.Column("CfgId");
            });

            Property(x => x.OfferPrice);

            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjectId");
            });

            Property(x => x.Remark, map =>
            {
                map.Length(500);
            });

           
        }
    }
}
